//
// Created by bxw57 on 2024/6/12.
//
#include <iostream>
using namespace std;
#include "MyArray.cpp"

int main(){
    MyArray<int> array(10);
    for (int i = 0; i < 15; i++)
        array.push_back(i);
    array.show();
    MyArray<int> array2(array);
    array2.show();
    cout << array2.getCap() << endl;
    MyArray<int> array3 = array2;
    cout << array3.getNum() << endl;
    cout << array3.pop() <<endl;
    array3.show();
    return 0;
}